﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Enter.DataCommon;

namespace Enter.DataCommon
{
	public class DataPage
	{
		public DataPage()
		{
			IsSuccess = false;
			RowsCount = 0;
			DataValue = null;
		}

		public bool IsSuccess { get; set; }

		public int RowsCount { get; set; }

		public DataTable DataValue { get; set; }



		public IList<T> ShowEntity<T>()
		{
			IList<T> result =new List<T>(0);
			if (DataValue != null)
			{
				result=DataValue.ToList<T>();
			}
			return result;
		}
	}


}
